//
//  DeviceUtils.h
//  JPWords
//
//  Created by 梁淑婷 on 2024/12/4.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface DeviceUtils : NSObject

// 获取屏幕或视图的实际宽度
+ (CGFloat)currentAvailableWidth;

// 获取屏幕或视图的实际高度
+ (CGFloat)currentAvailableHeight;

//适配宽度
+ (CGFloat)getAdaptedWidthForDesignWidth:(CGFloat)designWidth andCurrentAvailableWidth:(CGFloat)availableWidth;
//适配高度
+ (CGFloat)getAdaptedHeightForDesignHeight:(CGFloat)designHeight andCurrentAvailableHeight:(CGFloat)availableHeight;

@end

NS_ASSUME_NONNULL_END
